package com.ncucoder.server.mapper;

import com.ncucoder.server.model.Order;
import org.springframework.stereotype.Component;

/**
 * OrderConstants mapper
 *
 * @author <a href="https://www.ncucoder.com">hsowan</a>
 * @since 2019-01-18 21:11
 */
@Component
public interface OrderMapper {

    /**
     *
     * @param order
     * @return
     */
    int save(Order order);

    /**
     *
     * @param order
     * @return
     */
    int updateById(Order order);

    /**
     *
     * @param messageId
     * @return
     */
    Order getByMessageId(String messageId);
}
